package com.kj.tms.pri.system.menu.dto;

import com.kj.tms.common.bean.dto.BaseDto;

import java.util.Date;


/**
 * @ProjectName: etms
 * @Package: com.kj.tms.pri.system.menu.dto
 * @ClassName: ${TYPE_NAME}
 * @Description: []
 * @Author: [yangruidong]
 * @CreateDate: 2018/7/4 13:55
 * @UpdateUser: []
 * @UpdateDate: 2018/7/4 13:55
 * @UpdateRemark: []
 * @Version: 1.0
 * Copyright: 北京宏图天安 Copyright (c) 2018
 */
public class LoggerEntity extends BaseDto {
    //编号
    private String id;
    //客户端请求ip
    private String clientIp;
    //客户端请求路径
    private String url;
    //终端请求方式,普通请求,ajax请求
    private String requestType;
    //请求方法
    private String method;
    //请求的类及名称
    private String classMethod;
    //请求参数内容,json
    private String paramData;
    //请求接口唯一session标识
    private String sessionId;
    // 操作人
    private String operator;
    //接口返回时间
    private String returnTime;
    //接口返回数据json
    private String returnData;
    //请求时httpStatusCode代码，如：200,400,404等
    private String httpStatusCode;
    //请求耗时秒单位
    private int timeConsuming;
    //异常描述
    private String exceptionMessage;
    //请求开始时间
    private Date startTime;
    //请求结束时间
    private Date endTime;
    //排序字段
    private String orderBy;

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getUrl() {
        return url;
    }

    public void setUr(String url) {
        this.url = url;
    }


    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getClassMethod() {
        return classMethod;
    }

    public void setClassMethod(String classMethod) {
        this.classMethod = classMethod;
    }

    public String getParamData() {
        return paramData;
    }

    public void setParamData(String paramData) {
        this.paramData = paramData;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(String returnTime) {
        this.returnTime = returnTime;
    }

    public String getReturnData() {
        return returnData;
    }

    public void setReturnData(String returnData) {
        this.returnData = returnData;
    }

    public String getHttpStatusCode() {
        return httpStatusCode;
    }

    public void setHttpStatusCode(String httpStatusCode) {
        this.httpStatusCode = httpStatusCode;
    }

    public int getTimeConsuming() {
        return timeConsuming;
    }

    public void setTimeConsuming(int timeConsuming) {
        this.timeConsuming = timeConsuming;
    }

    public String getExceptionMessage() {
        return exceptionMessage;
    }

    public void setExceptionMessage(String exceptionMessage) {
        this.exceptionMessage = exceptionMessage;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRequestType() {
        return requestType;
    }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    @Override
    public String toString() {
        return "LoggerEntity{" +
                "id='" + id + '\'' +
                ", clientIp='" + clientIp + '\'' +
                ", url='" + url + '\'' +
                ", requestType='" + requestType + '\'' +
                ", method='" + method + '\'' +
                ", classMethod='" + classMethod + '\'' +
                ", paramData='" + paramData + '\'' +
                ", sessionId='" + sessionId + '\'' +
                ", operator='" + operator + '\'' +
                ", returnTime='" + returnTime + '\'' +
                ", returnData='" + returnData + '\'' +
                ", httpStatusCode='" + httpStatusCode + '\'' +
                ", timeConsuming=" + timeConsuming +
                ", exceptionMessage='" + exceptionMessage + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
